// Copyright 2024 CloudDetail
// SPDX-License-Identifier: Apache-2.0

package code

var zhCnText = map[string]string{
	ServerError:           "内部服务器错误",
	ParamBindError:        "参数信息错误",
	DbConnectError:        "数据库连接失败",
	UnAuth:                "未登录",
	InValidToken:          "无效的token",
	UserNoPermissionError: "没有权限",
	GroupNoDataError:      "数据组中暂无对应类型的数据",

	MockCreateError: "创建mock失败",
	MockListError:   "获取mock列表失败",
	MockDetailError: "获取mock详情失败",
	MockDeleteError: "删除mock失败",

	GetServiceUrlRelationError:     "获取服务调用关系失败",
	GetDescendantMetricsError:      "获取依赖视图的延时曲线失败",
	GetDescendantRelevanceError:    "获取依赖视图的关联度失败",
	GetPolarisInferError:           "获取北极星指标分析情况失败",
	GetErrorInstanceError:          "获取错误实例失败",
	GetErrorInstanceLogsError:      "获取错误实例故障现场日志失败",
	GetLogMetricsError:             "获取Log关键指标失败",
	GetLogLogsError:                "获取Log故障现场日志失败",
	GetTraceMetricsError:           "获取Trace关键指标失败",
	GetTraceLogsError:              "获取Trace故障现场日志失败",
	GetServiceListError:            "获取服务名列表失败",
	GetServiceInstanceOptionsError: "获取服务实例名列表失败",
	GetServiceEntryEndpointsError:  "获取服务入口Endpoint列表失败",
	GetK8sEventError:               "无法获取k8s事件",
	GetServiceEndPointListError:    "获取服务Endpoint列表失败",
	GetServiceRYGLightError:        "获取服务的红绿灯失败",
	GetNamespaceListError:          "获取命名空间列表失败",
	GetServiceREDChartsError:       "获取服务RED图标失败",

	GetFaultLogPageListError: "获取故障现场日志分页列表失败",
	GetFaultLogContentError:  "获取故障现场日志内容失败",
	QueryLogContextError:     "查询日志上下文失败",
	QueryLogError:            "查询全量日志失败",
	GetLogChartError:         "获取全量日志图表数据失败",
	GetLogIndexError:         "获取全量日志索引失败",

	GetLogTableInfoError:    "获取日志表信息失败",
	GetLogParseRuleError:    "获取日志表解析规则失败",
	UpdateLogParseRuleError: "更新日志表解析规则失败",

	GetTracePageListError:    "获取Trace分页列表失败",
	GetTraceFiltersError:     "获取Trace过滤条件失败",
	GetTraceFilterValueError: "获取Trace过滤条件值失败",
	GetOnOffCPUError:         "获取Trace中span执行消耗失败",
	GetSingleTraceError:      "获取单条trace数据失败",
	GetFlameGraphError:       "获取火焰图失败",

	GetOverviewServiceInstanceListError: "获取实例列表失败",
	GetServiceMoreUrlListError:          "获取更多服务端点失败",
	GetThresholdError:                   "获取阈值信息失败",
	GetTop3UrlListError:                 "获取应用下前三条异常服务端点信息失败",
	SetThresholdError:                   "设置阈值信息失败",
	GetServicesAlertError:               "获取服务告警信息失败",
	SetTTLError:                         "配置存储周期失败",
	GetTTLError:                         "获取存储周期失败",
	GetMonitorStatusError:               "获取监控服务状态失败",
	SetSingleTableTTLError:              "配置单个存储周期失败",

	GetAlertEventsError:       "获取告警事件失败",
	GetAlertEventsSampleError: "获取采样告警事件失败",

	GetSQLMetricError:    "获取SQL关键指标失败",
	GetAlertRuleError:    "获取告警规则失败",
	UpdateAlertRuleError: "更新告警规则失败",
	AddAlertRuleError:    "添加告警规则失败",
	DeleteAlertRuleError: "删除告警规则失败",

	UpdateAlertRuleValidateError: "验证告警规则失败,通常为规则中的expr非法",

	GetAMConfigReceiverError:    "获取告警通知对象失败",
	AddAMConfigReceiverError:    "添加告警通知对象失败",
	UpdateAMConfigReceiverError: "更新告警通知对象失败",
	DeleteConfigReceiverError:   "删除告警通知对象失败",

	AlertGroupAndLabelMismatchError: "组名和label中的组名不匹配",
	AlertKeepFiringForIllegalError:  "'keepFiringFor' 不合法",
	AlertForIllegalError:            "'for' 不合法",
	AlertOldGroupNotExistError:      "选择的告警规则所在组不存在",
	AlertAlertNotExistError:         "选择的告警规则不存在",
	AlertAlertAlreadyExistError:     "告警规则已存在",
	AlertConfigFileNotExistError:    "告警规则配置文件不存在",
	AlertTargetGroupNotExistError:   "目标组不存在",
	AlertCheckRuleError:             "查看告警规则名是否占用失败",

	AlertManagerReceiverAlreadyExistsError:  "告警通知对象名称已存在",
	AlertManagerReceiverNotExistsError:      "告警通知对象名称不存在",
	AlertManagerReceiverEmailHostMissing:    "告警通知对象 email 'smarthost' 配置缺失",
	AlertManagerReceiverEmailFromMissing:    "告警通知对象 email 'from' 配置缺失",
	AlertManagerEmptyReceiver:               "告警通知对象没有设置任何 webhook 或 email 配置",
	AlertManagerDefaultReceiverCannotDelete: "默认告警通知对象不能被删除",

	AlertEventImpactError:            "查询告警事件影响面失败",
	AlertEventImpactMissingTag:       "查询告警事件影响面失败, 事件标签中未找到任意可关联标签组 ",
	AlertEventImpactNoMatchedService: "查询告警事件影响面失败, 未找到告警事件匹配的服务 ",
	AlertEventIDMissing:              "查询告警事件影响面失败, 搜索时间范围内未找到告警事件ID对应的事件 ",

	AlertAnalyzeDescendantAnormalEventDeltaError: "分析告警事件失败: 查询下游异常事件失败",
	GetAnomalySpanError:                          "获取故障报告失败",
	GetDetectMutationExecListError:               "获取异常检测执行记录失败",
	GetDetectMutationRuleListError:               "获取取异常检测规则失败",
	GetQuickMutationMetricError:                  "获取预定义的快速异常检测指标失败",
	GetMetricPQLError:                            "获取预定义的快速告警规则指标失败",

	MutationPQLCheckFailed: "通过PQL检查指标突变失败",

	AlertAnalyzeDescendantAnormalEventError:   "获取下游异常事件失败",
	AlertAnalyzeDescendantAnormalContribution: "获取下游异常事件贡献失败",
	DetectDefectsError:                        "异常分析失败",
	DetectDefectsCreatAlertError:              "创建异常告警失败",
	AddExecRecordError:                        "添加执行记录失败",

	UserNotExistsError:       "用户不存在",
	UserPasswdIncorrectError: "密码错误",
	UserLoginError:           "登录失败",
	UserTokenExpireError:     "登录过期，请重新登录",
	UserAlreadyExists:        "用户已存在",
	UserCreateError:          "创建用户失败",
	UserUpdateError:          "更新失败",
	UserConfirmPasswdError:   "两次密码不一致",
	GetUserInfoError:         "获取用户信息失败",
	RemoveUserError:          "移除用户失败",
	UserPasswdSimpleError:    "密码强度太弱，至少包含一个大写、小写、特殊字符、数字且长度大于8",
	UserRemoveSelfError:      "不能删除自己",
	K8sGetResourceError:      "获取k8s资源失败",
	UserEmailUsed:            "邮箱已被使用",
	UserPhoneUsed:            "手机号已被使用",
	UserPhoneFormatError:     "手机号格式不正确",
	UserGrantRoleError:       "分配权限失败",
	UserGetRolesERROR:        "获取角色失败",
	RoleNotExistsError:       "角色不存在",
	GetMenuConfigError:       "获取菜单栏配置失败",
	UpdateMenuConfigError:    "更新菜单栏配置失败",
	RoleGrantedError:         "角色被分配",
	GetFeatureError:          "获取功能列表失败",
	AuthSubjectNotExistError: "授权主体不存在",
	UserGrantPermissionError: "授权失败",
	ConfigureMenuError:       "配置菜单失败",
	CheckRouterError:         "检查router权限失败",
	RouterNotExistsError:     "路由不存在",

	GetAlertsInputTargetTagsError:     "无法获取告警输入配置中的目标tag",
	CreateAlertSourceFailed:           "创建告警源失败",
	AlertSourceAlreadyExisted:         "创建或修改告警源失败,因为存在重复的告警源名称",
	DeleteAlertSourceFailed:           "删除告警源失败",
	GetAlertSourceFailed:              "获取告警源失败",
	CreateClusterFailed:               "创建集群失败",
	CreateSchemaFailed:                "创建schema失败",
	ListSchemaFailed:                  "获取schema列表失败",
	DeleteSchemaFailed:                "删除schema失败",
	GetSchemaColumnsFailed:            "获取schema列信息失败",
	UpdateSchemaDataFailed:            "更新schema数据失败",
	CheckSchemaUsedFailed:             "检查schema是否被使用失败",
	GetSchemaDataFailed:               "获取schema数据失败",
	SetDefaultAlertEnrichRuleFailed:   "设置默认告警规则失败",
	ClearDefaultAlertEnrichRuleFailed: "清空默认告警规则失败",
	UpdateAlertEnrichRuleFailed:       "更新告警规则失败",
	UpdateAlertSourceFailed:           "更新告警源失败",
	AcceptAlertEventFailed:            "接受告警事件失败",
	ProcessAlertEventFailed:           "处理告警事件失败",
	DeleteClusterFailed:               "删除集群失败",
	ListAlertSourceFailed:             "获取告警源列表失败",
	ListClusterFailed:                 "获取集群列表失败",
	GetAlertEnrichRuleFailed:          "获取告警规则失败",
	AlertSourceNotExisted:             "告警源不存在",
	PermissionNotExistError:           "功能权限不存在",
	GetDatasourceError:                "获取数据源失败",
	DataSourceNotExistError:           "数据源不存在",
	CreateDataGroupError:              "创建数据组失败",
	DeleteDataGroupError:              "删除数据组失败",
	DataGroupNotExistError:            "数据组不存在",
	GetDataGroupError:                 "获取数据组失败",
	UpdateDataGroupError:              "更新数据组名失败",
	AllocateDatasourceError:           "分配数据源失败",
	GetGroupDatasourceError:           "获取数据组数据源失败",
	DataGroupExistError:               "数据组已存在",
	DatasourceNotExistError:           "数据源不存在",
	AssignDataGroupError:              "分配数据组失败",
	RoleExistsError:                   "角色已存在",
	CreateRoleError:                   "创建角色失败",
	UpdateRoleError:                   "更新角色失败",
	DeleteRoleError:                   "删除角色失败",
	APINotExist:                       "API不存在",
	AuthError:                         "鉴权失败",
	GetGroupSubsError:                 "获取数据组授权主体失败",
	UserNameError:                     "用户名格式非法",

	CreateTeamError:       "创建团队失败",
	TeamAlreadyExistError: "团队已存在",
	TeamNotExistError:     "团队不存在",
	GetTeamError:          "获取团队列表失败",
	UpdateTeamError:       "更新团队失败",
	DeleteTeamError:       "删除团队失败",
	AssignToTeamError:     "分配失败",
	UnSupportedSubType:    "授权主体类型不支持",

	GetIntegrationInstallDocFailed:        "获取集群集成安装文档失败",
	GetIntegrationInstallConfigFileFailed: "获取集群集成安装配置文件失败",
	GetClusterIntegrationFailed:           "获取集群集成失败",

	GetAlertEventListError:     "获取告警事件列表失败",
	GetAlertEventClassifyError: "告警事件分类失败",

	GetAlertSlienceError:    "获取告警抑制配置失败",
	ListAlertSlienceError:   "列出所有抑制告警失败",
	SetAlertSlienceError:    "设置告警抑制失败",
	RemoveAlertSlienceError: "移除告警抑制失败",
	MarkAlertResolvedError:  "手动标记告警已解决失败",

	SearchAlertLabelFilterError: "查询告警标签过滤器失败",
	SearchAlertFilterValueError: "查询告警过滤值失败",
}
